package com.yanqu.road.entity.activity.entername;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.player.UserBaseInfo;

@FieldTypeAnnotation(tableName = "t_n_activity_enter_name")
public class UserEnterName extends DataObject {

    @FieldTypeAnnotation(desc = "活动ID", select = true, update = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "用户ID", select = true, update = true)
    private long userId;

    @FieldTypeAnnotation(desc = "区域:IP定位:报名")
    private int zoneId;

    @FieldTypeAnnotation(desc = "区服")
    private long serverId;

    @FieldTypeAnnotation(desc = "渠道")
    private int channelId;

    @FieldTypeAnnotation(desc = "分组")
    private int groupId;

    @FieldTypeAnnotation(desc = "玩家信息")
    private UserBaseInfo userBaseInfo;

    @FieldTypeAnnotation(desc = "领取散财奖励")
    private boolean getDisperseGold;

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if(this.activityId != activityId) {
            this.activityId = activityId;
            setUpdateOption();
        }
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public int getZoneId() {
        return zoneId;
    }

    public void setZoneId(int zoneId) {
        if(this.zoneId != zoneId) {
            this.zoneId = zoneId;
            setUpdateOption();
        }
    }

    public long getServerId() {
        return serverId;
    }

    public void setServerId(long serverId) {
        if(this.serverId != serverId) {
            this.serverId = serverId;
            setUpdateOption();
        }
    }

    public int getChannelId() {
        return channelId;
    }

    public void setChannelId(int channelId) {
        if(this.channelId != channelId) {
            this.channelId = channelId;
            setUpdateOption();
        }
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        if(this.groupId != groupId) {
            this.groupId = groupId;
            setUpdateOption();
        }
    }

    public UserBaseInfo getUserBaseInfo() {
        return userBaseInfo;
    }

    public void setUserBaseInfo(UserBaseInfo userBaseInfo) {
        this.userBaseInfo = userBaseInfo;
        setUpdateOption();
    }

    public boolean isGetDisperseGold() {
        return getDisperseGold;
    }

    public void setGetDisperseGold(boolean getDisperseGold) {
        if(this.getDisperseGold != getDisperseGold) {
            this.getDisperseGold = getDisperseGold;
            setUpdateOption();
        }
    }
}
